﻿<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!--_meta 作为公共模版分离出去-->
<jsp:include page="meta.jsp"></jsp:include>
<!--/meta 作为公共模版分离出去-->

<title>用户评论查询</title>
<meta name="keywords"
	content="H-ui.admin v3.0,H-ui网站后台模版,后台模版下载,后台管理系统模版,HTML后台模版下载">
<meta name="description"
	content="H-ui.admin v3.0，是一款由国人开发的轻量级扁平化网站后台模板，完全免费开源的网站后台管理系统模版，适合中小型CMS后台系统。">
</head>
<body>


	<section class="Hui-article-box">
		<nav class="breadcrumb">
			<i class="Hui-iconfont"></i> <span class="maincolor">博客</span> <span
				class="c-999 en">&gt;</span><span class="c-666">评论页面</span>
		</nav>
		<div class="mt-20">
			<table
				class="table table-border table-bordered table-bg table-hover table-sort">
				<thead>
					<tr class="text-c">

						<th width="80">评论编号：</th>
						<th width="80">用户名：</th>
						<th width="100">内容：</th>
						<th width="90">操作</th>
					</tr>
				</thead>
				<tbody>
					<c:forEach items="${bc}" var="list">
						<tr class="text-c">

							<td>${list.bcid}</td>
							<td>${list.uname}</td>
							<td>${list.bccontent}</td>
							<td><a style="text-decoration: none" class="ml-5"
								onClick="article_del(this,${list.bcid})" href="javascript:;"
								title="删除"><i class="Hui-iconfont">&#xe6e2;</i></a></td>
						</tr>

					</c:forEach>
				</tbody>
			</table>
		</div>
	</section>

	<!--_footer 作为公共模版分离出去-->
	<jsp:include page="footer.jsp"></jsp:include>

	<!--/_footer /作为公共模版分离出去-->

	<!--请在下方写此页面业务相关的脚本-->
	<script type="text/javascript">
	function article_del(obj,bcid){
		layer.confirm('确认要删除吗？',function(index){
			$.ajax({
				type: 'POST',
				url: "delComnent?bcid="+bcid,
				dataType: 'json',
				success: function(data){
					console.log(data.msg);
					if(data.msg=="操作成功")
					layer.msg('已删除!',{icon:1,time:2000});
					window.location.reload();
				},
				error:function(data) {
					console.log(data.msg);
				},
			});		
		});
	}
	</script>
	<!--/请在上方写此页面业务相关的脚本-->
</body>
</html>